Error in query: SELECT * FROM `page` WHERE `name`=''%20+%20id%20+%20'embed' AND `category_id`=''. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%20id%20+%20'embed' AND `category_id`=''' at line 1